#define _CRT_SECURE_NO_WARNINGS 1

#include "vector.h"
#include "list.h"
#include <list>
#include <vector>

struct A
{
	int _a = 0;
	int _b = 1;
};

int main()
{
	/*dwc::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);

	dwc::vector<int>::reverse_iterator rt = v.rbegin();
	while (rt != v.rend())
	{
		cout << *rt << " ";
		++rt;
	}
	cout << endl;

	rt = v.rbegin();
	while (rt != v.rend())
	{
		cout << *rt << " ";
		rt++;
	}
	cout << endl;

	cout << "*********" << endl;*/
	 
	/*dwc::list<A> l;
	A a;
	l.push_back(a);

	dwc::list<A>::reverse_iterator it = l.rbegin();
	while (it != l.rend())
	{
		cout << it->_a << " " << it->_b << endl;
		++it;
	}*/

	dwc::vector<A> l;
	A a;
	l.push_back(a);

	dwc::vector<A>::reverse_iterator it = l.rbegin();
	while (it != l.rend())
	{
		cout << it->_a << " " << it->_b << endl;
		++it;
	}

	return 0;
}